package com.observer;

/**
 * 真正的读者,为了简单就描述下姓名
 */
public class Reader implements  Observer {
    private String name;
    @Override
    public void update(Subject subject) {
        System.out.println(name+"收到了报纸..内容是:"+((NewsPaper)subject).getContent());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
